"""Increased username length

Revision ID: 8428b7ddbcfb
Revises: 175e0449ebd5
Create Date: 2023-10-26 10:16:43.329957

"""
import sqlalchemy as sa
from alembic import op

# revision identifiers, used by Alembic.
revision = "8428b7ddbcfb"
down_revision = "175e0449ebd5"
branch_labels = None
depends_on = None


def upgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.alter_column(
        "user",
        "username",
        existing_type=sa.VARCHAR(),
        type_=sa.String(),
        existing_nullable=False,
    )
    # ### end Alembic commands ###


def downgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.alter_column(
        "user",
        "username",
        existing_type=sa.String(),
        type_=sa.VARCHAR(),
        existing_nullable=False,
    )
    # ### end Alembic commands ###
